from flask_script import Manager, Shell
from app import create_app
from flask_migrate import Migrate, MigrateCommand, upgrade
from livereload import Server
app = create_app()


manager = Manager(app)
migrate = Migrate(app)


@manager.command
def dev():
    live_server = Server(app.wsgi_app)
    live_server.watch('*')
    live_server.serve()
    #liver_server.server(open_url=True)


if __name__ == '__main__':
    manager.run()
